import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import setCharter from '@/components/setCharter'
import setHouese from '@/components/setHouese'
import need from '@/components/need'
import recharge from '@/components/recharge'

//跳转页面
// import need from '@/components/comm/navigateToMpMine'  //我的页面
// import need from '@/components/comm/navigateToMpHouseDetail'  //出租房详情页
// import need from '@/components/comm/navigateToMpMyHouseDetail' //我的出租房详情页
// import need from '@/components/comm/navigateToMpDemandDetail'   //租房需求详情页
// import need from '@/components/comm/navigateToMpTrusteeshipDetail'   //包租信息详情页
 

Vue.use(Router)

export default new Router({
  mode: 'history',
  // base: '/gzh/zuchao/',
  base: '/gzh/chengzhongcun/',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      alias:'index.html',
      meta: {
        title: '智能推送'
      }
    }, {
      path: '/setCharter',
      name: 'setCharter',
      component: setCharter,
      meta: {
        title: '包租信息推送设置'
      }
    }, {
      path: '/setHouese',
      name: 'setHouese',
      component: setHouese,
      meta: {
        title: '房源推送设置'
      }
    }, {
      path: '/need',
      name: 'need',
      component: need,
      meta: {
        title: '租房需求推送设置'
      }
    },{
      path: '/recharge',
      name: 'recharge',
      component: recharge,
      meta: {
        title: '巢果充值'
      }
    },

  ]
})
